package com.happly.payHapplycloud.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

//添加get和set方法
@Getter
@Setter
//添加无参构造器
@NoArgsConstructor
public class Order implements Serializable {
    private Integer id;

    private Long orderNo;

    private Integer userId;

    private Integer shippingId;

    private Integer tutorId;

    private BigDecimal payment;

    private Integer paymentType;

    private Integer postage;

    private Integer status;

    private Date paymentTime;

    private Date sendTime;

    private Date endTime;

    private Date closeTime;

    private Date createTime;

    private Date updateTime;

    public Order(Long orderNo, Integer paymentType, Integer status, BigDecimal payment) {
        this.orderNo = orderNo;
        this.paymentType = paymentType;
        this.status = status;
        this.payment = payment;
    }
}